#include "StdAfx.h"
#include "GoogleException.h"

namespace GoogleProtocol
{

CGoogleException::CGoogleException(DWORD dwError)
: CHttpException(dwError) 
{
	m_mapResult[0x00] = L"Success!";
	m_mapResult[0x01] = L"Logon Failed!";
	m_mapResult[0x02] = L"Success";
	m_mapResult[0x03] = L"Success";
}

CGoogleException::~CGoogleException(void)
{
}

wstring CGoogleException::GetErrorString(void)
{
	if (m_lResult == 0x00)
	{
		return m_mapResult[m_lResult];
	}

	if (m_lResult == 0x01)
	{
	//	DWORD requestCode = GetLastRequestCode();
	//	return GetSysErrorMessage(requestCode);
	}

	return LPCWSTR();
}

}